@import '../../custom.less';

@grid-cell-prefix-cls: ~'@{css-prefix}grid-cell';
@grid-checkbox-prefix-cls: ~'@{css-prefix}grid-checkbox';

.TextEllipsis() {
  @apply overflow-hidden;
  @apply text-ellipsis;
  @apply whitespace-nowrap;
  @apply pl-2;
  @apply box-border;
}

.DefaultColumnHeight() {
  @apply h-9;
}

.MediumColumnHeight() {
  @apply h-10;
}

.SmallColumnHeight() {
  @apply h-9;
}

.MiniColumnHeight() {
  @apply h-8;
}

.CellEllipsis() {
  &:not(.col__actived) {
    .@{grid-cell-prefix-cls} {
      .TextEllipsis();
      @apply leading-normal;
      
      & > .@{grid-checkbox-prefix-cls} {
        .TextEllipsis();
        @apply pl-0;
      }
    }
  }
}
